home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / music / 309 / gfa / gfanews.doc < prev    next >
Text File  |  1988-10-20  |  4KB  |  151 lines

  1. GFA BASIC 3.03 Corrections and Additions 8/23/88
  2.  
  3. Known Bugs:
  4.  
  5. RINSTR  does not recognize the first character instead the byte following 
  6. the string is evaluated.
  7.  
  8. OPEN "R" GET and PUT do not work correctly without a given type number.
  9.  
  10. SEEK When an unopened file name is specified, an address or bus error will
  11. follow.
  12.  
  13. -x^y doesn't function.
  14.  
  15. EXP() the over flow check does not always function.
  16.  
  17. ON BREAK GOSUB x If these three keys are held for an extended period the
  18. procedure will be called repeatedly. There are two possibilities to turn 
  19. this off:
  20.  
  21. 1) ON BREAK GOSUB x
  22.    REPEAT
  23.    UNTIL MOUSEK
  24.    PROCEDURE x
  25.     ~bios(11,-1) and &f1)
  26.     ' THE REST AS IT WAS
  27.    RETURN
  28.  
  29. With this method the status of the shift key is directly changed.
  30.  
  31. 2) ON BREAK GOSUB x
  32.    REPEAT
  33.    UNTIL MOUSEK
  34.    PROCEDURE x
  35.     ON BREAK CONT
  36.     ' REST AS IT WAS
  37.     ON BREAK GOSUB x
  38.    RETURN
  39.  
  40. Here the break routine is turned off.
  41.  
  42. a=1E+100
  43. FOR i=1 to 100
  44.  PRINT a^i,LOG(a^i)/LOG(10)
  45. NEXT i
  46.  
  47. In this loop that numbers larger than 1E+308 are calculated correctly but 
  48. numbers larger than 1E+1000 are not correct. This is intentional.
  49.  
  50. KEYDEF
  51. The scan code is simulated with the ESC and RETURN keys with defined function
  52. keys so that ESC and RETURN can have the usual functions in GEM.
  53.  
  54. User Modifications to GFABASIC:
  55.  
  56. There is a small area within GFABASIC.PRG and the GFABASRO.PRG in which
  57. default settings can be changed.
  58.  
  59. OPEN "U",#1,"GFABASIC.PRG" ! or "GFABASRO.PRG"
  60. SEEK #1,31
  61. PRINT #1,"E";     ! or "H";
  62. CLOSE #1
  63. '
  64. 'with E the screen is erased at program start
  65. ' with H the screen is not erased
  66.  
  67. OPEN "U",#1,"GFABASRO.PRG"
  68. SEEK #1,32
  69. PRINT #1,"TESTPROG.GFA";CHR$(0);
  70. CLOSE #1
  71. '
  72. ' If no file is specified when GFABASRO is started, the program TESTPROG.GFA 
  73. ' will be loaded and executed. 
  74. ' This program name may be up to 63 characters in length, the null 
  75. ' byte at te end is very important, if only a null byte is given then 
  76. ' the original condition will be restored.
  77.  
  78. OPEN "U",#1,"GFABASIC.PRG"
  79. SEEK #1,32
  80. FOR i%=0 to 25
  81.  READ a%
  82.  OUT #1,a%
  83. NEXT i%
  84. CLOSE #1
  85. '
  86. ' A B C D E F G H I J K L M N O P Q R S T U V X Y Z
  87. DATA 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  88. '
  89. 'If you change the values in the DATA line then the default type for the 
  90. 'variable which begins with the letter above the number, will be changed.
  91. ' ONLY the following values are allowed:
  92. ' 0=DEFFLT  1=DEFSTR  2=DEFINT  3=DEFBIT
  93. ' 8=DEFWRD  9DEFBYT
  94.  
  95. OPEN "U",#1."GFABASIC.PRG"
  96. SEEK #1,58
  97. FOR i%=0 TO 3
  98.  READ a%
  99.  PRINT #1,MKI$(a%)
  100. NEXT i%
  101. CLOSE #1
  102. '
  103. DATA &0777,&0700,&0070,&0000
  104. '
  105. 'Colors for the editor, :Inverse
  106. ' DATA &0000,&0700,&0070,&0777
  107.  
  108. OPEN "U",#1,"GFABASIC.PRG"
  109. SEEK #1,80
  110. PRINT #1,MKI$90);    !PRESET DEFLIST
  111. CLOSE #1
  112.  
  113. OPEN "U",#1,"GFABASIC.PRG"      !LLIST PRESET
  114. SEEK #1,82
  115. PRINT #1,MKI$(pl);              !.pl
  116. PRINT #1,MKI$(pl-2);            !.pl
  117. SEEK #1,86
  118. PRINT #1,MKI$(ll);              !.ll
  119. SEEK #1,88
  120. PRINT #1,he$+chr$(13);          !.he
  121. SEEK #1,120
  122. PRINT #1,fo$+chr$(13);          !.fo
  123. SEEK #1,152
  124. PRINT #1,in$+chr$(13);          !.in
  125. SEEK #1,184
  126. PRINT #1,ff$+chr$(13);          !.ff
  127. CLOSE #1
  128. '
  129. ' he$, fo$, in$ And ff$ are default values for .he, .fo, .in and .ff
  130. ' with CHR$(0) (=default) no header or footer and no initialization string 
  131. ' will be output. (ff$) it is expected that the user can 
  132. ' initiate a form feed with CHR$(12).
  133. ' The maximum line length for these strings including the necessary 
  134. ' CHR$(13) is 32 characters.
  135.  
  136. New Commands:
  137.  
  138. .PA    Executes a form feed
  139. .P-    point commands are not listed!
  140. .P+  point commands are listed as normal.
  141.  
  142. .P+ and .P- apply to the entire listing (like .Nx), the last setting will apply.
  143.  
  144. DUMP/DIR/FILES
  145. The screen output of these commands can be influenced, as with TRON. With
  146. CAPS LOCK the listing will be slow, the output can be stopped with the Right
  147. Shift Key.
  148.  
  149. Translated by 
  150. Jeff Little                    
  151.